<template>
  <div class="hello">
    <ul>
      <li v-for="item in list" :key="item.id">{{item.name }}{{item.age}}</li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data(){
    return {
      list:[
        {id:1,name:'张三',age:18},
        {id:2,name:'李四',age:20},
        {id:3,name:'王五',age:22},
        {id:4,name:'赵六',age:24},
      ]
    }
  }
}
</script>

